package com.sunsys.cxf.webservice;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public interface HelloWorld {

    
	/*
	 * The @WebParam annotation is necessary as java interfaces do not store the Parameter name 
	 * in the .class file. So if you leave out the annotation your parameter will be named arg0.
	 */
	String sayHi(@WebParam(name="text") String text);
	
    /* Advanced usecase of passing an Interface in.  JAX-WS/JAXB does not
     * support interfaces directly.  Special XmlAdapter classes need to
     * be written to handle them
     */


    /* Map passing
     * JAXB also does not support Maps.  It handles Lists great, but Maps are
     * not supported directly.  They also require use of a XmlAdapter to map
     * the maps into beans that JAXB can use. 
     */
//    @XmlJavaTypeAdapter(IntegerUserMapAdapter.class)
//    Map<Integer, String> getUsers();
}